package com.heyun.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.heyun.bean.HeyunBasicInfo;
import com.heyun.dao.BasicInfoMapper;
import com.heyun.service.BasicInfoService;

@Service
public class BasicInfoServiceImpl implements BasicInfoService {
	
	@Autowired
	private BasicInfoMapper basicInfoMapper;

	@Override
	public List<HeyunBasicInfo> listBasicInfo() {
		return basicInfoMapper.listBasicInfo();
	}
	
	@Override
	public List<HeyunBasicInfo> getBasicInfoByKeyword(String keyword) {
		return basicInfoMapper.getBasicInfoByKeyword(keyword);
	}

	@Override
	public int insertBasicInfo(HeyunBasicInfo basicInfo) {
		return basicInfoMapper.insertBasicInfo(basicInfo);
	}

	@Override
	public int updateBasicInfo(HeyunBasicInfo basicInfo) {
		return basicInfoMapper.updateBasicInfo(basicInfo);
	}

	@Override
	public int deleteBasicInfo(int basicId) {
		return basicInfoMapper.deleteBasicInfo(basicId);
	}

	@Override
	public HeyunBasicInfo getBasicInfoById(Integer basicId) {
		// TODO Auto-generated method stub
		return basicInfoMapper.getBasicInfoById(basicId);
	}


}
